package com.emep.emeptime.entity.systeminfo;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
* @author Wangcc
* @Description: 菜单信息表
* @date 2018/2/23 17:46
* @version V1.0
*/
@Data
@Entity
@Table(name = "sys_menu_info")
public class SysMenuInfo implements Serializable {

    private static final long serialVersionUID = -6212379808243141513L;

    @Id
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @GeneratedValue(generator = "system-uuid")
    private String id;

    @Column(name = "menu_name",columnDefinition="varchar(100) COMMENT '菜单名称'")
    private String menuName;

    @Column(name = "url",columnDefinition="varchar(100) COMMENT '访问路径'")
    private String url;

    @Column(name = "priority",columnDefinition="varchar(100) COMMENT '优先级'")
    private String priority;

    @Column(name = "description",columnDefinition="varchar(100) COMMENT '描述'")
    private String description;

    @Column(name = "parent_menu",columnDefinition="varchar(100) COMMENT '菜单父id'")
    private String parentMenu;


    public SysMenuInfo() {
    }
}
